import { createReducer, on ,createSelector} from '@ngrx/store';
import { getListSuccess } from "../actions/list.actions";

export type listState = string[]

export const initialState : listState = [];

export const listReducers = createReducer(
  initialState,
  on(getListSuccess, (state, data: any): any => {
    console.log(data)
    return [...data.list]
  }),
);
